/*
 * =====================================================================================
 *
 *       Filename:  IOException.h
 *
 *    Description:  Fro IOException
 *
 *        Version:  1.0
 *        Created:  2008年08月27日 14时30分07秒
 *       Revision:  none
 *       Compiler:  g++
 *
 *         Author:  ZhixiongHong (hzx), fishwarter@gmail.com
 *        Company:  Unioncast
 *
 * =====================================================================================
 */


#ifndef SS_IO_EXCEPTION_H
#define SS_IO_EXCEPTION_H

#include <string>
#include <exception>

using namespace std;


#ifdef HAS_SS_NAMESPACE
namespace ss{
#endif // HAS_SS_NAMESPACE

class IOException: public exception
{
public:
	IOException(const string& msg) throw(): _msg(msg){}
	virtual ~IOException() throw() {}
public:
	virtual const char *what() const throw() {return _msg.c_str();}
private:
	string 	_msg;
};


#ifdef HAS_SS_NAMESPACE
}
#endif //HAS_SS_NAMESPACE
#endif // SS_IO_EXCEPTION_H
